class PlayListener:
	def __init__(self, rhy):
		self.name = "play"
		self.rhythmbox = rhy
	def notify(self, node):
		file = node.getAttribute("file")
		if file == "":
			self.rhythmbox.playPause(False)
		else:
			self.rhythmbox.playFile(file)
